import java.util.ArrayList;

public class Deck {
	private String[] suit = new String[]{"S", "D", "C", "H"};
	private String[] types = new String[]{"2", "3", "4", "5", "6", "7", "8", "9", "J", "Q", "K", "A"};
	private ArrayList<int[]> pakkchk = new ArrayList<int[]>();
	public String giveCard(){
		String k;
		for(int i = 0; i < suit.length; i++) {
			pakkchk.add(new int[types.length]);
		}
		int mast = (int)Math.round(Math.random() * (suit.length - 1));
		int kaart = (int)Math.round(Math.random() * (types.length - 1));
		if(suit[mast] != null){
			pakkchk.get(mast)[kaart]++;
	
		}
		k = suit[mast] + types[kaart];
		return k;
	}
}
